import React, { Component } from 'react'

// 封装高阶组件
export default (Component) => {
    class NewComponent extends Component {
        state = {

        }

        componentDidMount() {
            
        }
        render() {
            return <Component />
        }
    }

    return NewComponent
}